﻿using System;
using ValidationFramework.Configuration.Reflection;

namespace ValidationFramework.Tests.Performance.TestHelpers
{
	public class AlwaysFailAttribute : Attribute, IRuleAttribute
	{
		public string Id { get; set; }

		public string ErrorMessage { get; set; }

		public RuleScope Scope { get; set; }

		public string RuleSet { get; set; }

		public Rule CreateRule(ICachedReflectionInfo descriptor)
		{
			return new Rule(new AlwaysFailValidator());
		}
	}
}
